﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class YJLR_YJCXList : System.Web.UI.Page
{
  protected void Page_Load(object sender, EventArgs e)
  {
    if (!ProjectPrivate.GetQX("19"))
    {
      Server.Transfer("~\\blank.aspx");
    }
    if (!Page.IsPostBack)
    {
      date1.Date = CommonUse.GetYC();
      date2.Date = CommonUse.GetYM();
    }
    BindGrid();
  }

  protected void BindGrid()
  {
    DataSet ds = YJLR.GetDS(date1.Text, date2.Text, "");
    ASPxGridView1.DataSource = ds;
    ASPxGridView1.DataBind();
  }
  protected void btnQuery_Click(object sender, EventArgs e)
  {

  }

  protected void btnExport_Click(object sender, EventArgs e)
  {
    this.ASPxGridViewExporter1.WriteXlsToResponse();
  }
}
